/// @class : advertise
/// @date : 2023-02-23 21:00
/// @name : LFC
/// @description :

class Advertise {
  int? raw;
  int? total;
  List<Rows>? rows;
  int? code;
  String? msg;

  Advertise({this.raw, this.total, this.rows, this.code, this.msg});

  Advertise.fromJson(Map<String, dynamic> json) {
    raw = json['raw'];
    total = json['total'];
    if (json['rows'] != null) {
      rows = <Rows>[];
      json['rows'].forEach((v) {
        rows!.add(new Rows.fromJson(v));
      });
    }
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['raw'] = this.raw;
    data['total'] = this.total;
    if (this.rows != null) {
      data['rows'] = this.rows!.map((v) => v.toJson()).toList();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class Rows {
  Null? searchValue;
  String? createBy;
  String? createTime;
  String? updateBy;
  String? updateTime;
  String? remark;
  Params? params;
  int? id;
  String? url;
  String? img;
  String? title;
  String? advertisingWord;
  String? pattern;
  String? upFlag;
  String? delFlag;
  int? version;

  Rows(
      {this.searchValue,
      this.createBy,
      this.createTime,
      this.updateBy,
      this.updateTime,
      this.remark,
      this.params,
      this.id,
      this.url,
      this.img,
      this.title,
      this.advertisingWord,
      this.pattern,
      this.upFlag,
      this.delFlag,
      this.version});

  Rows.fromJson(Map<String, dynamic> json) {
    searchValue = json['searchValue'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
    remark = json['remark'];
    params =
        json['params'] != null ? new Params.fromJson(json['params']) : null;
    id = json['id'];
    url = json['url'];
    img = json['img'];
    title = json['title'];
    advertisingWord = json['advertisingWord'];
    pattern = json['pattern'];
    upFlag = json['upFlag'];
    delFlag = json['delFlag'];
    version = json['version'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['searchValue'] = this.searchValue;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    data['remark'] = this.remark;
    if (this.params != null) {
      data['params'] = this.params!.toJson();
    }
    data['id'] = this.id;
    data['url'] = this.url;
    data['img'] = this.img;
    data['title'] = this.title;
    data['advertisingWord'] = this.advertisingWord;
    data['pattern'] = this.pattern;
    data['upFlag'] = this.upFlag;
    data['delFlag'] = this.delFlag;
    data['version'] = this.version;
    return data;
  }
}

class Params {
  Params();

  Params.fromJson(Map<String, dynamic> json) {}

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    return data;
  }
}
